import request from '../../utils/request'

export function initTeaPer(page) {
  return request({
    url: '/permission/get/tea/' + page,
    method: 'get'
  })
}

export function editTeaPer(teaRolePermissionVo) {
  return request({
    url: 'permission/edit/tea',
    method: 'post',
    data: teaRolePermissionVo
  })
}

export function getTeaByName(name) {
  return request({
    url: '/permission/getName/tea/' + 1 + '/' + name,
    method: 'get'
  })
}

